]> dgit.raspbian.org Git - gnome-shell.git/commit
iconGrid.js: Animate icon spring using translation
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Fri, 10 Jan 2020 09:37:26 +0000 (17:37 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Mon, 13 Jan 2020 08:23:37 +0000 (16:23 +0800)
commit76961927d56dcc92be5d77ecfabdb1b2d176db0e
treea66fe147525eb5421c5437b2b0793c08893b5ce0
parent8064f4498ea4d3542d6f0919d4c275475dab629a
iconGrid.js: Animate icon spring using translation

Animating the icon spring using the `translation-x/y` properties instead
of the `x/y` properties avoids relayouts. There are still other non-icon
actors moving, but it's a big improvement.

Before: 595 relayouts per spring
After: 94 relayouts per spring

Reducing relayouts reduces reallocation, which reduces CPU-intensive
JavaScript execution.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/926
js/ui/iconGrid.js